package com.xxcloud.web.base.controller;

import com.xxcloud.model.web.base.dto.BaseDTO;

/**
 * Created by chenbingwen on 19/10/29.
 */
public class BaseController {

    // 测试用
    private static final long OPERATOR_USER_ID = 100000;

    protected long getUserId() {
        return OPERATOR_USER_ID;
    }

    protected <T extends BaseDTO> void setUserId(T t) {
        t.setOperatorId(getUserId());
    }

}
